package com.chaoyong.higo.adapter;

import com.chaoyong.higo.R;
import com.chaoyong.higo.base.BaseAdapter;
import com.chaoyong.higo.bean.KuaiDiBean;
import com.chaoyong.higo.utils.ViewHolder;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

/**
 * 物流信息
 * @author zk
 *
 */
public class LogisticsInfoAdapter extends BaseAdapter<KuaiDiBean.DataEntity.TracesEntity> {
	
	/** 到哪了 */
	private TextView logistics_where;
	/** 啥时候到的 */
	private TextView logistics_times_dot;

	public LogisticsInfoAdapter(Context context) {
		super(context);
	}


	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		if (convertView == null) {
			convertView = mInflater.inflate(R.layout.item_logistics_info, null);
		}

		logistics_where = ViewHolder.get(convertView, R.id.logistics_where);
		logistics_times_dot = ViewHolder.get(convertView, R.id.logistics_times_dot);
		
		String acceptTime = mList.get(position).getAcceptTime();
		String acceptStation = mList.get(position).getAcceptStation();
		
		logistics_where.setText(acceptStation);
		logistics_times_dot.setText(acceptTime);
		return convertView;
	}

}
